﻿<?php
require_once("../includes/db_connect.php");
require_once("../includes/leftList.php");
if(isset($_GET["page"])){
	if(isset($_GET["topPage"])) {
		echo getTopPage($db, safety($_GET["page"]));
	}else{
		createList(safety($_GET["page"]), $db);
	}
}else{
	if(isset($_GET["topPage"])) {
		echo getTopPage($db, "start");
	}else{
		createList("start", $db);
	}
}
?>